Ambry Manual:
Top ~
Up ~
Next ~
Previous
Simple properties are the core property type in Ambry. Nearly every object will have at least a few simple properties. Simple properties store their data in a string of 255 characters; this string can then be displayed in one of several different ways or be held to within a range of values. You can also set the value of a simple property to be the result of an expression.
There are four display types available for simple properties string, number, boolean, and unit. When you change the display type of a simple property, it simply changes the way the data is displayed; the actual value of the property remains unchanged.
To change the display type of a simple property,
If you set the display type to Unit, you also have to specify which unit set Ambry will use when formatting the property's value for display. To specify the unit set for a simple property,
Once you have specified a display type, the value of the property is formatted according to the display type. However, if you edit the property's value, you will notice that the original value remains unchanged.
You can specify a range of values the property must remain within. To set a range of values,
Values for the simple property will now be displayed between the given range. If a value is below the low end given, the low end value is displayed instead; if a value is above the high end given, the high end value is displayed. Note that the actual value remains unchanged.
If the display type for the simple property is set to Number, you can also specify that the value must be a whole number. To enable whole number conversion,
Values for the simple property will now always be displayed in integral numbers. Any decimal part of the number will be truncated for display.
Objects that are intended as parent objects often have a set of values for a property commonly used in the object's instances. Properties can have a pop-up menu of those values using the pop-up items behavior. To add a pop-up of common values to a simple property,
In the Properties window, the simple property now has a pop-up menu containing common values for the property. To set the value of the simple property to one of the items in the pop-up menu,
The value is changed.
You can use expression values in simple properties to have properties whose values are based on the values of other properties. For example, you may have a "Current health" property that is the "Maximum health" property minus the "Damage taken" property. To set a property to be an expression,
The value of the property is now set to the result of the expression. Note that you may not set the Name property to an expression value.
Copyright © 1998 Island Spirits Software. Ambry and Pip are trademarks of Island Spirits Software. Other trademarks are the property of their respective owners.